package com.ele.Service;

import com.ele.Pojo.Business;
import com.ele.Pojo.PageResult;

import java.sql.SQLException;
import java.util.List;

public interface BusinessService {
    //查所有
    public List<Business> getAllBusiness() throws SQLException;
    //注册/添加
    public Integer businessRegist(String account,String password,String telephone,String contact);

    //登录
    public Business businessLogin(String account,String password);

    //修改
    public Integer UpdateBusiness(String account,String password,String telephone,String contact,String id);
    //修改
    public Integer deleteBusiness(String id);
    //查询自己写的
    public List<Business> queryBusiness(String account,String telephone,String contact);

    //
    PageResult<List<Business>> findAll(String account , String contact, String telephone, String currentPage, String pageSize);

}
